<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				},
				src: ''
			}
		},
		onLoad(options) {
			this.src = options.url;
			if(options.title){
				uni.setNavigationBarTitle({
					title:options.title
				})
			}
		}
	}
</script>

<style>

</style>
